/*
 * =====================================================================================
 *
 *       Filename:  MeshObject.h
 *
 *    Description:  Unniversal objeict loaded from ./Objects/ directory
 *
 *        Version:  1.0
 *        Created:  05/31/2011 08:32:34 PM
 *       Compiler:  gcc
 *
 *         Author:  Toth Tamas (Osiris), osiris996@gamil.com
 *
 * =====================================================================================
 */
#ifndef MESHOBJET_H_

#define MESHOBJET_H_

#include "Element.h"
#include <GL/glut.h>
#include <QVector>

class MeshObject: public Element {
public:
  MeshObject (const char *, unsigned char*, float*);
  virtual ~MeshObject();
protected:
  virtual void renderInLocalFrame() const;
private:

  float **_verts; //list of vertexes
  QVector<int*> _qfaces; //list of faces from 4 vertexes
  QVector<int*> _tfaces; //list of faces form 3 vertexes 
  int _n_qfaces; 
  int _n_tfaces;

  void loadObjectFromFile(char *); //loading vertexes form file
};



#endif /* end of include guard: MESHOBJET_H_ */
